<template>
  <div>
    <div class="total-number">{{ title }}</div>
    <slot name="number"/>
    <slot name="intro" />
    <slot name="desc" />
  </div>
</template>

<script>
import CountUp from '../CountUp/index'
export default {
  name: 'CardItem',
  props: {
    title: {
      type: String,
      required: true
    }
  },
  components: {
    CountUp
  }
}
</script>

<style lang="scss" scoped>
  .total-number{
    font-size: 14px;
    line-height: 14px;
    color: #969799;
  }
  .number{
    font-size: 28px;
    margin: 15px 0 13px;
    color: #333;
    font-weight: bolder;
    .money{
      font-size: 16px;
      font-weight: normal;
    }
  }
  .intro{
    font-size: 28px;
    margin: 15px 0 13px;
    color: #333;
    font-weight: bolder;
  }
  .desc{
    padding: 0 0 10px;
    color: rgba(0,0,0,.85);
    font-weight: 500;
  }
</style>
